package com.example.ui.other;

import com.example.huashangapp.R;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

/**
 * 检查更新
 */
public class UpdateActivity extends Activity implements OnClickListener {
	private Button leftBtn, rightBtn;
	private TextView titleText;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.other_update);
		init();

	}

	private void init() {
		leftBtn = (Button) findViewById(R.id.layout_title_left_btn);
		rightBtn = (Button) findViewById(R.id.layout_title_right_btn);
		titleText = (TextView) findViewById(R.id.layout_title_middle_text);
		leftBtn.setText("返回");
		rightBtn.setVisibility(View.INVISIBLE);
		titleText.setText("华商学习网版本更新详情");
		leftBtn.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		if (v.getId() == R.id.layout_title_left_btn) {
			finish();
		}
	}
}
